// pages/find/find.js
Page({
  /**
   * 页面的初始数据
   */

  data: {
    //轮播图素材
    swiperImg: [
      'https://www.dior.cn/couture/var/dior/storage/images/horizon/beauty/fragrance/collection-privee-christian-dior/discover-the-collection/01-the-grey-zone/40147665-1-int-EN/01-the-grey-zone_1440_1200.jpg',
      'https://www.dior.cn/couture/var/dior/storage/images/25789885/15-chi-CN/01-sauvage-elixir-20212_1440_1200.jpg',
      'https://www.dior.cn/couture/var/dior/storage/images/horizon/beauty/fragrance/womens-fragrance/discover-miss-dior-blooming-bouquet/01-love-is-a-bouquet/38812253-1-int-EN/01-love-is-a-bouquet_1440_1200.jpg',
      'https://www.dior.cn/couture/var/dior/storage/images/38970670/8-chi-CN/new-push-campaign-14_1440_1200.jpg',
  ],
  swiperIndex:0,//轮播图索引
  bgColor:[
      "linear-gradient(#bb72b5,#f1ccee,#f1f1f1,#f1f1f1)",
      "linear-gradient(#13023a,#13023a8f,#f1f1f1,#f1f1f1)",
      "linear-gradient(#ff9dce,#f8bcda,#fff,#fff)",
      "linear-gradient(#c44d38,#c44d38ab,#fff,#fff)",
  ],// linear-gradient 渐变色需要四个颜色属性
    cateItems:[
      {
        cate_id:1,
        cate_name:"全部",
        ishaveChild:true,
        children:[
          {
            child_id:1,
            name:'戒指',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:2,
            name:'戒指',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:3,
            name:'手链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:4,
            name:'手链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:5,
            name:'耳环',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:6,
            name:'项链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:7,
            name:'项链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:8,
            name:'唇膏',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dwa0f008b2/assets/Y0345005/Y0345005_C034700915_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:9,
            name:'眼影',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw25fc5287/assets/Y0334000/Y0334000_C033400001_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:10,
            name:'气垫',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw9abd7505/assets/Y0341000/Y0341000_C034100010_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:11,
            name:'蜜粉',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw9af64320/assets/Y0149000/Y0149000_C014900010_E01_GHC.jpg?sw=460&sh=498&sm=fit&imwidth=460"
          },
          {
            child_id:12,
            name:'锁妆喷雾',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw486b4467/assets/Y0233000/Y0233000_C023300001_E01_GHC.jpg?sw=460&sh=498&sm=fit&imwidth=460"
          },
          {
            child_id:13,
            name:'粉饼',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dwb2697469/assets/Y0137720/Y0137720_C013773100_E01_GHC.jpg?sw=460&sh=498&sm=fit&imwidth=460"
          },
          {
            child_id:14,
            name:'真我纯真香水',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw71e0ba9c/assets/Y0996491/Y0996491_C099672980_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:15,
            name:'银影清木',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw335c1167/assets/Y0959160/Y0959160_F095255009_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:16,
            name:'迪奥小姐',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dwc45ff524/assets/Y0996347/Y0996347_C099600764_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:17,
            name:'旷野淡香水',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw54f1ea9d/assets/Y0685240/Y0685240_F068522009_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          }
        ]
      },
      {
        cate_id:2,
        cate_name:"彩妆",
        ishaveChild:true,
        children:[
          {
            child_id:1,
            name:'唇膏',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dwa0f008b2/assets/Y0345005/Y0345005_C034700915_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:2,
            name:'眼影',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw25fc5287/assets/Y0334000/Y0334000_C033400001_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:3,
            name:'气垫',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw9abd7505/assets/Y0341000/Y0341000_C034100010_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:4,
            name:'蜜粉',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw9af64320/assets/Y0149000/Y0149000_C014900010_E01_GHC.jpg?sw=460&sh=498&sm=fit&imwidth=460"
          },
          {
            child_id:5,
            name:'锁妆喷雾',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw486b4467/assets/Y0233000/Y0233000_C023300001_E01_GHC.jpg?sw=460&sh=498&sm=fit&imwidth=460"
          },
          {
            child_id:6,
            name:'粉饼',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dwb2697469/assets/Y0137720/Y0137720_C013773100_E01_GHC.jpg?sw=460&sh=498&sm=fit&imwidth=460"
          }
        ]
      },
      {
        cate_id:3,
        cate_name:"香水",
        ishaveChild:true,
        children:[
          {
            child_id:1,
            name:'真我纯真香水',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw71e0ba9c/assets/Y0996491/Y0996491_C099672980_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:2,
            name:'银影清木',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw335c1167/assets/Y0959160/Y0959160_F095255009_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:3,
            name:'迪奥小姐',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dwc45ff524/assets/Y0996347/Y0996347_C099600764_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          },
          {
            child_id:4,
            name:'旷野淡香水',
            image:"https://eco-beauty.dior.cn/dw/image/v2/BDGF_PRD/on/demandware.static/-/Sites-master_dior/default/dw54f1ea9d/assets/Y0685240/Y0685240_F068522009_E01_GHC.jpg?sw=460&sh=498&sm=fit"
          }
        ]
      },
      {
        cate_id:4,
        cate_name:"珠宝",
        ishaveChild:true,
        children:[
          {
            child_id:1,
            name:'戒指',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/W/v/1681926325_JGEM95022_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:2,
            name:'戒指',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/0/Z/1681926326_JGEM95021_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:3,
            name:'手链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/e/r/1681926324_JGEM95016_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:4,
            name:'手链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/2/w/1681926326_JGEM95014_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:5,
            name:'耳环',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/N/R/1614017648_JGEM95002_0000_E12_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:6,
            name:'项链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/x/o/1648573328_JRDV95203_0000_E06_GH.jpg?imwidth=3840 3840w"
          },
          {
            child_id:7,
            name:'项链',
            image:"https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=384 384w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=640 640w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=750 750w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=828 828w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=1080 1080w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=1200 1200w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=1920 1920w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=2048 2048w, https://media.dior.com/couture/ecommerce/media/catalog/product/L/B/1599731107_JRDV95023_0000_E01_GH.jpg?imwidth=3840 3840w"
          },
        ]
      },
      {
        cate_id:5,
        cate_name:"女装",
        ishaveChild:false,
        children:[]
      },
      {
        cate_id:6,
        cate_name:"男装",
        ishaveChild:false,
        children:[]
      },
      {
        cate_id:7,
        cate_name:"护肤品",
        ishaveChild:false,
        children:[]
      },
      {
        cate_id:8,
        cate_name:"饰品",
        ishaveChild:false,
        children:[]
      },
      {
        cate_id:9,
        cate_name:"包包",
        ishaveChild:false,
        children:[]
      },
    ],
    curNav:1,
    curIndex:0
  },
//事件处理函数
  switchRightTab:function(e){
    //获取item项的id，和数组的下标值
    let id=e.target.dataset.id,
      index = parseInt(e.target.dataset.index);
    //把点击到的某一项，设为当前index
    this.setData({
      curNav:id,
      curIndex:index
    })
  },
  //监听轮播图索引事件
getSwiperIndex(e){
  let currentIndex = e.detail.current
  this.setData({
      swiperIndex:currentIndex
  })
},
 

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})